<template>
    <el-button @click="() => set('primary')">默认</el-button>
    <el-button @click="() => set('success')">成功</el-button>
  </template>
  <script setup lang="ts">
  import { useLowCodeStore } from "../../../../store/index";
  const store = useLowCodeStore();
  const set = (str) => {
    const value = store.nowComponent;
    value.props.type = str;
    store.updateNowComponents(value);
  };
  </script>

  
../../../../store/module/index